package com.hb.core.pojo.project.section.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.hb.core.pojo.Attachments;
import com.hb.core.pojo.parent.MPCommonEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;
import java.util.Date;

/**
 * <p>
 * 供应商标段报价表
 * </p>
 *
 * @author zhaojk
 * @since 2021-10-13
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("trade_bid_section_offer")
@ApiModel(value = "BidSectionOffer对象", description = "供应商标段报价表")
public class BidSectionOffer extends MPCommonEntity {


    @ApiModelProperty(value = "标段ID")
    private Long sectionId;

    @ApiModelProperty(value = "开标标段ID")
    private Long openingBidId;

    @ApiModelProperty(value = "其他报价信息ID")
    private Long extInfoId;

    @ApiModelProperty(value = "报价人ID(关联jnpf机构信息表)")
    private Long offerId;

    @ApiModelProperty(value = "报价轮次")
    private Integer offerOrder;

    @ApiModelProperty(value = "二次报价信息表id")
    private Integer secBidId;

    @ApiModelProperty(value = "组织机构Id")
    private Long orgId;

    @ApiModelProperty(value = "报价人名称")
    private String offerName;

    @ApiModelProperty(value = "报价")
    private String paramValue;

    @ApiModelProperty(value = "专家意见")
    private String expertOpinion;


    @ApiModelProperty(value = "报价状态：0未报价 1：已报价")
    private Integer offerType;

    @ApiModelProperty(value = "报价截止时间")
    @JsonFormat(shape= JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime endTime;

    @ApiModelProperty(value = "签过章的附件")
    private Attachments signFile;
}
